package com.smtx.utils.iterator;

/**
 * Created by IntelliJ IDEA.
 * User: repnikov
 * Date: 08.04.11
 * Time: 0:53
 * To change this template use File | Settings | File Templates.
 */
public abstract class Filter {
    private FilterType type = Filter.FilterType.KEEP;

    public abstract boolean filter(Object o);

    public void setType(FilterType type) {
        this.type = type;
    }
    public FilterType getType() {
        return type;
    }

    public enum FilterType {
        KEEP, REMOVE
    }
}
